<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style type="text/css">
    </style>
</head>
<body>

<textarea name="textarea" cols="40" >文本框中的内容</textarea>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script type="text/javascript">

    "use strict";

    /*1.不允许对只读属性赋值*/
    /*var obj = {};
    Object.defineProperty(obj, "x", {value:0, writable:false});
    obj.x = 3.14;
    alert(obj);
    alert(obj.x);*/






</script>
</body>

</html>